<template>
	<view class="content">
		<!-- 加载 -->
		<dLoading :status='loading'></dLoading>
		<SearchInout @input='search'>
		</SearchInout>
		<!-- 问卷调查图片 -->
		<view class="img_questionnaire">
			<image class="img" mode=""
				src="https://img.js.design/assets/img/64ef010bbcb50def0676a5c2.png#6ce2107db14a8d8f811f3c9cac0db016"
				mode=""></image>
		</view>
		<!-- 导航 -->
		<NavList :HidePop='HidePop' :Navlist='list' :NavlistOld='listOld' :scrollTop='scrollTop' @click='navClick'></NavList>
		<!-- 新闻 -->
		<view class="NewList margin-20">
			<view class="NewItem" v-for="(item,index) in 10" :key="index" @click="Url">
				<view class="ItmeLeft">
					<view class="Top">
						<view class="title" v-if="index==0">
							连续第二年提出建议取消“醉驾入刑”连续第二年提出建议取消“醉驾入刑”
						</view>
						<view class="title" v-else>
							连续第二年提出建议取消
						</view>
						<view class="text">
							<view class="text">
								<text class="Topping" v-if="index==0">置顶</text>

								<view class="time">
									<view class="drop">
									</view>
									2023-08-30
									<text style="padding-left: 10rpx;">来源：外贸处</text>
								</view>


							</view>

							<view class="number">
								<text class="iconfont icon-guankan see"></text>
								<text>168人</text>

							</view>
						</view>
					</view>
				</view>
				<view class="ItmeRight" v-if="index!=0">
					<image class="ItmeRight" mode=""
						src="https://img.js.design/assets/img/6231a7a065c2ad816fa3eddf.png"></image>
				</view>
			</view>
		</view>

	</view>
</template>
<script>
	import SearchInout from '../../component/Search/Search.vue'
	import NavList from '../../component/Navlist/Navlist.vue'
	export default {
		components: {
			SearchInout,
			NavList

		},
		data() {
			return {
				navTitle: '',
				scrollTop: '',
				loading: true,
				HidePop:false,
				list: [{
						label: '国际物流',
						value: '国际物流'
					},
					{
						label: '外贸政策',
						value: '外贸政策'
					},
					{
						label: '海关政策',
						value: '海关政策'
					},
					{
						label: '税务政策',
						value: '税务政策'
					},
					{
						label: '国际物他1',
						value: '国际物他1'
					},
					{
						label: '外贸政好1',
						value: '外贸政好1'
					}

				],
				listOld: [{
						label: '国际物加',
						value: '国际物加'
					},
					{
						label: '外贸政加',
						value: '外贸政加'
					},
					{
						label: '海关政加',
						value: '海关政加'
					},
					{
						label: '税务政加',
						value: '税务政加'
					},
					{
						label: '国际物加',
						value: '国际物加'
					}

				]

			}
		},
		onLoad() {
			this.HidePop=false;
			setTimeout(() => {
				this.loading = false;
			}, 500)
		},
		onPullDownRefresh() {
			// uni.stopPullDownRefresh();
		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop;
		},
		onHide() {
			this.HidePop=true;
		},
		methods: {
			search(e) {
				console.log(e)

			},
			// 点击菜单
			navClick(e) {
				console.log(e)
				this.navTitle = e.active;
				this.list=e.listNew;
				
			},
			Url() {
				uni.navigateTo({
					url: '/pages/NoticeInfo/NoticeInfo'
				})
			},


		}
	}
</script>

<style scoped lang="less">
	.content {
		border-top: 1px solid #E0E0E0;

		.img_questionnaire {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-wrap: wrap;

			.img {
				height: 200rpx;
				width: 710rpx;
				// background-color: #E0E0E0;
				display: block;
			}
		}

		// 新闻
		.NewList {
			padding-bottom: 100rpx;

			.NewItem {
				border-bottom: 1px solid rgba(224, 224, 224, 1);
				padding: 20rpx 0;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.ItmeLeft {
					padding-right: 20rpx;

					.title {
						font-size: 30rpx;
						font-weight: bold;
						line-height: 48rpx;
						color: rgba(51, 51, 51, 1);
						text-align: left;
						min-height: 80rpx;
					}

					.text {
						display: flex;
						justify-content: space-between;
						align-items: center;
						padding-top: 10rpx;

						.Topping {
							font-size: 24rpx;
							color: rgba(212, 48, 48, 1);
							padding-right: 20rpx;
						}

						.drop {
							width: 10rpx;
							height: 10rpx;
							border-radius: 50%;
							background: rgba(51, 51, 51, 0.2);
							margin-right: 5rpx;
						}

						.time {
							font-size: 24rpx;
							color: rgba(51, 51, 51, 0.5);
							display: flex;
							align-items: center;
							padding-right: 20rpx;

						}

						.number {
							color: rgba(51, 51, 51, 0.5);
							font-size: 24rpx;
							display: flex;
							align-items: center;
						}

						.see {
							color: rgba(51, 51, 51, 0.5);
							font-size: 28rpx;
							padding-right: 10rpx;
						}
					}

				}

				.ItmeRight {
					width: 160rpx;
					height: 160rpx;
					opacity: 1;
					border-radius: 16rpx;
				}
			}

		}



	}
</style>